﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DAO;
using DTO;
using System.Data.SqlClient;
namespace Banking.Member
{
    public partial class ChiTietGiaoDich : Form
    {
        TypeDemo _type;
        public ChiTietGiaoDich(int  ma,TypeDemo type)
        {
            InitializeComponent();
            _type = type;
            dataGridViewX1.DataSource = GiaoDichDA.GetByMaTKThe(ma,_type.typeDemo);
            dataGridViewX1.Columns["MaTKThe"].Visible = false;
            dataGridViewX1.Columns["MaLoaiGD"].Visible = false;
            dataGridViewX1.Columns["MaNganHang"].Visible = false;
            dataGridViewX1.Columns["MaATM"].Visible = false;
            dataGridViewX1.Columns["SoTienGD"].DefaultCellStyle.Format ="0";
            dataGridViewX1.Columns["TrangThaiGD"].Visible = false;
            dataGridViewX1.Columns["NganHang"].Visible = false;
            dataGridViewX1.Columns["LoaiGiaoDich"].Visible = false;
            dataGridViewX1.Columns["ATMGD"].Visible = false;
            dataGridViewX1.Columns["tkGiaoDich"].Visible = false;
            dataGridViewX1.Columns["ViTriDatATM"].Visible = false;
        }
    }
}
